﻿using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;

namespace FPSO.HMI.Controls.Converter
{
    class ColorToSolidBrushConverter : IValueConverter
    {
        public object Convert(
            object value,
            Type targetType,
            object parameter,
            CultureInfo culture)
        {
            Color c = (Color)value;

            return new SolidColorBrush(c);
        }

        public object ConvertBack(
            object value,
            Type targetType,
            object parameter,
            CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
